<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let obj = {
            0: '优秀',
            1: '良好',
            2: '一般',
            3: '很差',
        }
        // console.log(obj[0])

        let arr = [
            { name: '小明', age: 18, gender: '男', money: 30, status: 0 },
            { name: '小红', age: 26, gender: '女', money: 99, status: 3 },
            { name: '小刚', age: 19, gender: '男', money: 88, status: 2 },
            { name: '小丽', age: 20, gender: '女', money: 67, status: 1 },
        ]
        // 页面中显示优秀的学员是小明
        for (let i = 0; i < arr.length; i++) {
            if (arr[i].status === 0) {
                document.write(`
                    ${obj[0]}的学员是${arr[i].name}
                `)
            }
        }
    </script>
</body>

</html>